package com.szrt.java.day20170113.demo08;

public class CarFactory {

	public static Car createCar(String car){
		
		if("BYD".equals(car)){
			return new BYD();
		}else if("BMW".equals(car)){
			return new BMW();
		}
		return null;
	}
	
}
